﻿@{
        Layout = "~/Views/Shared/_PersionLayout.cshtml";
        ViewBag.Menu = "mobile";
        ViewBag.IsSet = string.IsNullOrWhiteSpace(ViewData["mobile"] as string)?"true":"false";
}

@section HeadJavaScript{
            <script src="~/Scripts/angular/base/angular.min.js" type="text/javascript"></script>
            <!--[if (IE 6)|(IE 7)]><script type="text/javascript" src="~/Scripts/angular/base/json2.js"></script><![endif]-->
            <script src="~/Scripts/angular/js/mobile.js" type="text/javascript"></script>
            <script src="~/Scripts/angular/base/angular.autoload.js" type="text/javascript"></script>
}
<div ng-controller="Ctrl" ng-init="load({
    mobile:{ msg:'请正确输入您的手机号码，手机号码务必属于您本人',required:'请填写您的手机号码（请输入11位的手机号码）', pattern: '您填写的手机号码格式有误', contains: '很遗憾，该账号已经被注册！',failed:'检测账号失败，请联系我们',success:true}
    ,verifyvalue: {msg:'请输入短信验证码，如果1分钟内没有收到短信，请重新获取！',error:  '请正确填写验证码',success:true}
    ,submit:{verifycode:'验证码错误',identity:'登录超时，请重新登录',mobile:'系统繁忙，请稍候再试',error:'系统异常，请联系我们'}
});
    set=@ViewBag.IsSet;
    submit.url='/mobile/set/@ViewData["code"]';
">
    <div class="pos"><img src="~/images/images/pay_dian.jpg" /> <a href="#">会员中心</a> - 绑定安全手机</div>
    <div class="form1" style="background:none;">
        <form name="form" on-submit="submit()" onsubmit="return false;">
        <table class="tab1" width="720">
            <tr>
                <td width="115"><span class="txtr">手机号码：</span> </td>
                <td width="270">
                    <input class="text270" type="text" tabindex="1" name="mobile" ng-init="mobile.input()" on-focus="mobile.input()" on-blur="mobile.validate();" ng-model="mobile.value" ng-pattern="mobile.pattern" required/>
					
                </td>
                <td>
                    <span class="label2" ng-show="!mobile.error&&!mobile.success&&mobile.msg" style="display:none;">{{mobile.msg}}</span>
					<span class="error" ng-show="mobile.error" style="display:none;"><img src="~/images/images/error.jpg" /> {{mobile.error}}</span>
					<span style="display:none;" ng-show="mobile.success"><img src="~/images/images/right.jpg" /> </span>
                </td>
            </tr>
            <tr>
                <td></td>
                <td colspan="2">
                    <div ng-hide="verifycode.status">
					    <a ng-click="verifycode.newsms()" tabindex="2"><img src="~/images/images/sjyzm.jpg"/></a><span class="ml10 fnone">点击获取动态密码</span>
				    </div>
				    <div style="display:none;" ng-show="verifycode.status">
					    <a class="waiting"><img src="/images/old/time2_30.gif"/></a><span class="wait_ri" ng-show="verifycode.success" style="display:none;">验证码已经发送，1分钟后可重新获取一次验证码</span><span class="red ml10 wait_ri" ng-hide="verifycode.success" style="display:none;">对不起，您获取短信验证码过快，请稍后再获取</span>
				    </div>
                </td>
            </tr>
            <tr>
                <td><span class="txtr">验证码：</span> </td>
                <td>
                    <input class="text270" type="text" tabindex="3" name="verifyvalue" name="verifyvalue" ng-init="verifyvalue.input()" on-focus="verifyvalue.input()" on-blur="verifyvalue.validate();" ng-model="verifyvalue.value" ng-pattern="verifyvalue.pattern" required/>
						
                </td>
                <td>
                    <span class="label2" ng-show="!verifyvalue.error&&!verifyvalue.success&&verifyvalue.msg" style="display:none;">{{verifyvalue.msg}}</span>
					<span class="error" ng-show="verifyvalue.error" style="display:none;"><img src="~/images/images/error.jpg" /> {{verifyvalue.error}}</span>
					<span style="display:none;" ng-show="verifyvalue.success"><img src="~/images/images/right.jpg" /> </span>
                </td>
            </tr>
            <tr  ng-show="submit.error" style="display:none">
            <td></td>
                <td colspan="2">
                   <span class="error">{{submit.error}}</span>
                </td>
            </tr>
                    
            <tr>
                <td></td>
                <td align="center">
                    <input type="submit" value="" class="safe_ljbd" />
                </td>
                <td></td>
            </tr>
        </table>
        </form>
        <p style="margin:20px 0 0 40px;" class="c999">安全手机信息是申请密码找回，装备找回等服务的重要凭证，请务必填写并牢记；</p>
    </div>


   <div class="form1" ng-hide="set" style="display:none;">
		<div class="already1">
			<div class="item">
				<span class="label">&nbsp;</span>
				<div class="fl">
				    <span>您绑定的手机号码是：<b class="cr-juhuang">@ViewData["mobile"]</b><b style="color:#898989;">（已绑定）</b></span> 
				</div>
			</div>
			<div class="item">
				<span class="label">&nbsp;</span>
				<div class="fl">
				    <input class="bangding" type="button" value="更 换 手 机 号" name="loginsubmit" ng-click="change()"/>
				</div>
			</div>
		</div>
		<div class="tip">安全手机信息是申请密码找回，装备找回等服务的重要凭证，请务必填写并牢记；</div>
	</div>
</div>
